package com.lizhe.springboot_jsp_shiro.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 类描述:
 *
 * @author Administrator
 * @create 2022-05-21 16:58
 */
@RequestMapping("order")
@Controller
public class OrderController {

    @RequiresRoles(value = {"admin","user"})
    @RequiresPermissions("user:update:01")
    @RequestMapping("save")
    public String save(){
        System.out.println("进入方法");
        return "redirect:/index.jsp";
    }
}